package ioc14;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.xml.parsers.SAXParser;

public class Test1 {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc14/spring1.xml");
        SAXParser saxparser = (SAXParser) ac.getBean("saxparser");
        SAXParser saxparser1 = (SAXParser) ac.getBean("saxparser");
        System.out.println(saxparser);
        System.out.println(saxparser1);

    }
}
